package com.c8a.validation.exception;

import javax.validation.ConstraintViolation;
import java.util.Map;
import java.util.Set;

/**
 * @Author C8A
 * @Date 2022-04-24 18:25
 * @Email 1912327276@qq.com
 */

public class CollectionValidException extends RuntimeException {

    private Map<Integer, Set<ConstraintViolation<Object>>> errors;

    public CollectionValidException(Map<Integer, Set<ConstraintViolation<Object>>> errors) {
        this.errors = errors;
    }

    public Map<Integer, Set<ConstraintViolation<Object>>> getErrors() {
        return errors;
    }

    public void setErrors(Map<Integer, Set<ConstraintViolation<Object>>> errors) {
        this.errors = errors;
    }

}
